
#define private public
#define protected public

#include <iostream>

#include "gtest/gtest.h"
#include "String.hh"
#include "HttpRequest.hh"


class HttpRequest_unittest:public testing::Test{
	


} ;

TEST_F(HttpRequest_unittest, DefaultConstructor) {
		const char * str="GET /562f25980001b1b106000338.jpg HTTP/1.1\r\n\r\n";
		HttpRequest hr(str,strlen(str));
		EXPECT_EQ(hr.analyze(),true);
}


TEST_F(HttpRequest_unittest, DefaultConstructor1) {
		const char * str="GET /562f25980001b1b106000338.jpg HTTP/1.1\r\n"
			"Host: localhost\r\n"
			"\r\n";
		HttpRequest hr(str,strlen(str));
		EXPECT_EQ(hr.analyze(),true);
		hr.dump();
}
